package cc.dd.marketing.reward.handler;


import cc.dd.marketing.api.constant.FunctionCodeEnum;
import cc.dd.marketing.core.AbstractBusinessHandler;
import cc.dd.marketing.core.annotation.FunctionMapper;
import cc.dd.marketing.core.annotation.RewardMapper;
import cc.dd.marketing.core.constant.CouponTemplateEnum;
import cc.dd.marketing.common.ContextParam;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author dongsufeng
 * @date 2022/9/9 11:57 AM
 */
@Component
@Slf4j
@FunctionMapper(FunctionCodeEnum.PARTICIPATE)
@RewardMapper(CouponTemplateEnum.DEFAULT)
public class RewardCommonHandler extends AbstractBusinessHandler {


    protected void beforeDoAction(ContextParam contextParam) {
       log.info("前置校验");
    }

    @Override
    protected void doAction(ContextParam contextParam) {
        log.info("发放奖励");
    }
}
